<?php

namespace App\Service\Admin;

use App\Model\Admin\DictTypeModel;
use App\Service\BaseService;

/**
 * 字典类型管理-服务类
 * @author LZH
 * @since: 2021/08/12
 * Class DictTypeService
 */
class DictTypeService extends BaseService
{
    /**
     * 构造函数
     * LevelService constructor.
     */
    public function __construct()
    {
        $this->model = new DictTypeModel();
        parent::__construct();
    }

    /**
     * 获取数据列表
     * @return array
     * @since 2021/08/12
     * @author LZH
     */
    public function getList()
    {
        $param = $this->getRequestParam();

        // 查询条件
        $map = [];


        return parent::getList($map);
    }

    /**
     * 根据字典类型码来获取所有字典值
     * @param string $DictTypeCode 字典类型码
     * @author LZH
     * @since 2021/08/16
     */
    public function getDictionaryByDictType($DictTypeCode)
    {
        return $this->model->getDictionaryByDictType($DictTypeCode);
    }
}
